package com.weiyuwqj.api.exception;

import java.util.HashMap;

/**
 * Created by Administrator on 2015/12/9.
 */
public class ExceptionMessage {

    public static HashMap<String, String> exceptionMessage = new HashMap<String, String>();

    static {

        //处理用户异常信息
        exceptionMessage.put("user.login.password.password_not_correct", "您输入的密码有误");
        exceptionMessage.put("user.login.username.no_such_user", "您输入的用户不存在");
        exceptionMessage.put("user.modify.password.password_not_correct", "您输入的旧密码有误");
        //处理找回密码异常
        exceptionMessage.put("sys.user.add.user_exist", "用户已存在");
        exceptionMessage.put("user.forget.user_not_exist", "你输入的用户不存在");
        exceptionMessage.put("user.forget.mobile_not_exist", "你输入的手机号码不存在");
        exceptionMessage.put("user.not_is_guarantee_company", "此账号不是担保账号");

        //处理投资异常信息
        exceptionMessage.put("item.invest.session_out", "您还未登陆，请先登陆");

        //处理用户资金异常信息

        //投标异常信息
        exceptionMessage.put("item.invest.less_min_investment", "投资金额低于最低投标金额");
        exceptionMessage.put("item.invest.amount_no_meet_coupon_amount", "投资金额不满足红包使用条件");
        exceptionMessage.put("item.invest.amount_no_meet_ticket_amount", "投资金额不满足加息券使用条件");
        exceptionMessage.put("item.invest.great_single_max_investment", "投资金额高于单笔最高投资金额");
        exceptionMessage.put("item.invest.account_no_more_balance", "没有足够的可用余额");
        exceptionMessage.put("item.great_max_investment", "投标金额大于该标的最大投标金额");
        exceptionMessage.put("item.invest.item_no_more_balance", "该标的可投资金额不足");
        exceptionMessage.put("item.status.not_full_complete", "满标复审状态不正确");
//        exceptionMessage.put("item.invest.item_no_more_balance","投资金额等于为零");
        exceptionMessage.put("item.invest.intercept_item", "项目已提前满标");
        exceptionMessage.put("item.invest.not_exist", "项目不存在");
        exceptionMessage.put("sysUser.user.not_exist", "系统用户不存在或密码不正确");

        exceptionMessage.put("item.invest.busy", "系统繁忙,请重试");
        exceptionMessage.put("item.invest.has_invest_isnew", "新手标当日已经投资过了，请明日再来");
        exceptionMessage.put("item.invest.isnew_has_first", "新手标仅支持首投");
        exceptionMessage.put("item.invest.no_invest_status", "项目非投资状态");


        //后台充值信息
        exceptionMessage.put("platformRecharge.amountEqualToZero", "操作金额不能为0");
        exceptionMessage.put("platformRecharge.rechargeTypeValid", "操作类型不存在");

        //还款信息
        exceptionMessage.put("item.repay.balance_is_not_enough", "还款余额不足");
        exceptionMessage.put("item.repay.balance_is_not_item_amount", "还款金额不满足项目金额");


        //处理用户异常信息
        exceptionMessage.put("user.register.randomCode.error", "短信验证码输入有误");

        exceptionMessage.put("user.register.randomCode.timeout", "短信验证码已经超时，请重新获取");

        exceptionMessage.put("user.register.randomCode.no", "请发送短信");
        exceptionMessage.put("user.register.password.is_no", "密码为空");

        //用户注册信息
        exceptionMessage.put("user.register.mobile_already_exists", "手机号已存在");
        exceptionMessage.put("user.register.mobile_no_already_exists", "用户不存在");
        exceptionMessage.put("user.register.mobile_already_exists", "用户已存在");
        exceptionMessage.put("user.register.randomCode.error", "验证码错误");
        exceptionMessage.put("user.register.password_already_exists", "已设置密码");

        //登录
        exceptionMessage.put("user.login.username.no_such_user", "您输入的用户不存在");
        exceptionMessage.put("user.login.username_or_password.error", "用户名或密码错误");

        //绑定银行卡
        exceptionMessage.put("user.bank.idCard.already_exists", "身份证已存在");
        exceptionMessage.put("user.bank.idCard.already_certified", "已实名");
        exceptionMessage.put("user.bank.cardNo.already_exists", "卡号已存在");
        exceptionMessage.put("user.bank.cardNo.already_certified", "已绑定银行卡");

        //提现
        exceptionMessage.put("user.cash.amount.balance_is_not_enough", "余额不足");
        exceptionMessage.put("user.cash.bank.no_already_certified", "未绑定银行卡");
        exceptionMessage.put("user.cash.quota.balance_is_not_enough", "个人限额不足");
        exceptionMessage.put("platform.cash.quota.balance_is_not_enough", "平台限额不足");

        //还款
        exceptionMessage.put("user.repay.no_repayment", "不支持提前还款");
        exceptionMessage.put("user.repay.no_all_repayment", "不支持提前全部还款");
        exceptionMessage.put("user.repay.no_part_repayment", "不支持提前部分还款");
        exceptionMessage.put("user.repay.user.error", "还款人错误");
        exceptionMessage.put("item.repay_principal_diffrent_ongoingAmount", "待还金额与标的进行金额不一致");
        exceptionMessage.put("item.user.repay_no_such", "用户相应标的待还记录未找到");
        exceptionMessage.put("user.account_no_such", "当前用户未找到，请稍后再试");
        exceptionMessage.put("item.has_not_prepayment", "标的没有对应的提前还款记录，请联系客服");
        exceptionMessage.put("repay.principal_diffrent_amount", "用户所还本金与所需要待还金额不一致，请输入正确的金额");

        //发标
        exceptionMessage.put("item.first.time.error", "发布时间错误");

        //自动投标
        exceptionMessage.put("item.auto.info.error", "自动投标信息错误");
        exceptionMessage.put("invest.item_is_null", "没有满足的项目");

        //实名
        exceptionMessage.put("user.security.already_exists", "已实名");
        exceptionMessage.put("user.security.no_already_exists", "未实名");

        //充值
        exceptionMessage.put("user.recharge.create_fail", "创建订单失败");


        //体验金
        exceptionMessage.put("sys.experienced_gold.not_exist", "此体验金不存在");
        exceptionMessage.put("sys.experienced_gold.can_not_use", "体验金为不可使用状态");
        exceptionMessage.put("sys.experienced_gold.user.not_realname", "未实名");
        exceptionMessage.put("sys.experienced_gold.user.not_binding_card", "未绑卡");


        exceptionMessage.put("invite.invalid_invite_code", "邀请码不存在");
        exceptionMessage.put("invite.user_had_bound_invite_code", "用户已绑定邀请人");
        exceptionMessage.put("invite.bingding.busy", "系统繁忙");
        exceptionMessage.put("invite.user_self_bound_invite_code", "不能绑定自己的邀请码");
        exceptionMessage.put("invite.user_invite_user_is_user", "不能互相邀请");

        exceptionMessage.put("item.repay_amount_full", "项目还款金额已满");

        exceptionMessage.put("cash.sys_limit", "因账户限制，无法提现");

        exceptionMessage.put("invest.auto_add_already_exists", "未锁定的规则只能创建一个");

        exceptionMessage.put("item.invest.fail", "投资失败");

        exceptionMessage.put("repay.already.complete", "已经完成还款");

        exceptionMessage.put("raffle_ticket.num_error", "抽奖券不足");

        exceptionMessage.put("update_error", "更新失败");
        exceptionMessage.put("select_error","查询失败");
        exceptionMessage.put("picture_code_error", "图片验证码错误");


        exceptionMessage.put("modify_password.old_password_error", "原密码错误");
        exceptionMessage.put("user.is_not_correct_type", "此用户不能再后台充值");
        exceptionMessage.put("can_not_find_user_accout", "找不到用户的账户信息");
        exceptionMessage.put("user.cash.not_correct_time", "不在提现时间内");

        exceptionMessage.put("invest_password.not_exists", "定向密码不存在");

        exceptionMessage.put("invest_password.password_error", "定向密码错误");

        exceptionMessage.put("activity.timeout", "不在活动时间内");
        exceptionMessage.put("lottery.user.already.exists", "该用户已存在，请登录APP参与抽奖");
        exceptionMessage.put("auto.min_not_max", "最小不能大于最大");
        exceptionMessage.put("auto.sms_not_exists", "未发送短信");
        exceptionMessage.put("invest.move_vip.app_invest", "移动专享，不可在pc端投资");
        exceptionMessage.put("invest.item_full.status_error", "状态不正确");

        exceptionMessage.put("user_not_exsit", "用户不存在");
        exceptionMessage.put("merchantId_not_match", "商户号不匹配");

        exceptionMessage.put("not.repeat.click", "请勿重复点击");
        exceptionMessage.put("payment.error", "支付失败");

        exceptionMessage.put("invite_code.not_exists", "邀请码不存在");

        exceptionMessage.put("cash_amount.less", "提现金额必须大于100");

        exceptionMessage.put("debt.personal.amount_limit", "个人发布债权需投资债权全部金额");
        exceptionMessage.put("debt.company.amount_limit", "投资金额不允许少于起投金额");
        exceptionMessage.put("debt.has_full", "债权为不可投资状态");
        exceptionMessage.put("debt.invest_mount_must_more_than_zero", "投资金额必须大于0");
        exceptionMessage.put("debt_has_no_more_money", "债权可投金额不足");
        exceptionMessage.put("account_has_no_more_money", "可用余额不足");
        exceptionMessage.put("debt_had_expired", "债权投资时间已过");
        exceptionMessage.put("debt.invest.busy", "系统繁忙,请重试");
        exceptionMessage.put("debt.invest.amount_not_a_integer", "投资金额必须是整数");
        exceptionMessage.put("debt.invest.coupon.require_amount_not_meet", "投资金额不满足红包要求使用的金额");
        exceptionMessage.put("debt.not_exist", "债转项目不存在");
        exceptionMessage.put("debt_published", "该投资已发布债权");
        //资产方异常
        exceptionMessage.put("sys.asset.company.id.not_exists", "资产公司不存在");
        exceptionMessage.put("sys.asset.product.not_exists", "该产品不存在");
        exceptionMessage.put("sys.asset.product.name.not_exists", "请输入产品名称");
        exceptionMessage.put("sys.asset.product.apr.not_exists", "请输入产品利率");
        exceptionMessage.put("sys.asset.product.amount.lt.zero", "金额不能小于0");
        exceptionMessage.put("sys.asset.product.time_limit.lt.zero", "期限不能小于0");
        exceptionMessage.put("sys.asset.product.cycle_unit.lt.zero", "周期单位不能小于0");
        exceptionMessage.put("sys.asset.product.repay_style.lt.zero", "还款方式不能小于0");
        exceptionMessage.put("sys.asset.product.interest_time.not_exists", "请选择预计计息时间");
        exceptionMessage.put("sys.asset.product.description.not_exists", "请输入产品描述");
        exceptionMessage.put("sys.asset.product.asset_package.not_detele", "该资产已审核通过，不允许删除");
        exceptionMessage.put("sys.asset.product.asset_package.not_edit", "该资产已审核通过，不允许编辑");
        exceptionMessage.put("sys.asset.picture.id.not_exists", "图片信息不存在");
        exceptionMessage.put("item.status_is_not_right", "项目是非投资状态");
        exceptionMessage.put("invest.amount_must_be_integer_times", "必须是每份金额的整数倍");

        //资方打包异常
        exceptionMessage.put("asset.package.item_id_not_exists", "未选中标信息");
        exceptionMessage.put("asset.package.item_not_type", "项目不属于同一类型");
        exceptionMessage.put("packagePlan.not_exist", "资产包计划不存在");
        exceptionMessage.put("sys.asset.picture.url.not_exists", "请先上传原图片");
        exceptionMessage.put("sys.asset.product.not_match", "资产包必须（期限-计息时间）保持一致");
        exceptionMessage.put("sys.asset.deposit.not_exists", "押金记录不存在");
        exceptionMessage.put("sys.asset.deposit.lt.zero", "押金不能小于0");
        exceptionMessage.put("sys.asset.rate.between.zero.one", "比例必须介于0-1之间");
        exceptionMessage.put("sys.asset.deposit.exist.company", "已经存在该资产方的额度，不允许重复添加");
        exceptionMessage.put("sys.asset.add.deposit.before", "请先添加该资产方的信用额度");
        exceptionMessage.put("sys.asset.deposit.amount.not.enough", "该资产额度不够，请先确认该资产方的额度");
        exceptionMessage.put("sys.asset.product.item.already.push", "该资产已经推送到标的，不允许重复推送");

        //资方打包异常
        exceptionMessage.put("asset.package.item_id_not_exists", "未选中标信息");
        exceptionMessage.put("asset.package.item_not_type", "项目不属于同一类型");
        exceptionMessage.put("asset.package.parameter_isNull", "参数不能为空");
        exceptionMessage.put("packagePlan.not_found", "没有此包计划");
        exceptionMessage.put("packagePlan.last_term.not_full", "上期计划未复审");

        //项目撤回
        exceptionMessage.put("item.recall.thaw_error", "项目撤回解冻错误");

        //批量投资
        exceptionMessage.put("batch.invest.error", "批量投资错误");

        //发布债权
        exceptionMessage.put("item.status_is_not_correct", "项目状态错误");
        exceptionMessage.put("debt.invest_date_lock", "未满足允许发布债权时间");
        exceptionMessage.put("debt.debt_exists", "已发布债权");
        exceptionMessage.put("debt.self_debt_not_invest", "不允许投资自己的债权");

    }

}
